.container {
  background: #f4f4f4;
  min-height: 100vh;
  padding-bottom: 60px;
}

/* 顶部导航 */
.top {
  width: 100%;
  height: 6vh;
  top: 0px;
  background-color: #ffffff;
}

.top img {
  width: 4vw;
  height: 4vw;
  margin: 12px 10px;
}

.top div {
  width: 60%;
  height: 6vh;
  display: flex;
  justify-content: space-between;
}

.top div > b {
  font-size: 14px;
  line-height: 3;
}

/* 地址选择 */
.addressSection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin-top: 10px;
  background: white;
  /* border-radius: 8px; */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

  cursor: pointer;
}

.addressContent {
  flex: 1;
}

.addressHint {
  color: #666;
  font-size: 14px;
}

.arrowIcon {
  width: 16px;
  height: 16px;
}

/* 商品信息 */
.productCard {
  display: flex;
  padding: 10px;
  margin-top: 10px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.productCard img {
  width: 100px;
  height: 100px;
  margin-right: 16px;
  border-radius: 4px;
}

.productInfo h3 {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

.productInfo p {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
}

.priceRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  color: #ff5000;
  font-weight: bold;
  font-size: 16px;
}

.quantityControl {
  display: flex;
  align-items: center;
  background: white;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  height: 32px; /* 匹配图片比例 */
}

.quantityControl button {
  background: #f0f0f0; /* 灰色塑料质感 */
  border: none;
  width: 28px; /* 方形按钮 */
  height: 28px;
  padding: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left:10px;
}

.quantityControl button:hover {
  background: #e0e0e0; /* 悬停反馈 */
}

.quantityControl input {
  width: 40px; /* 数字框宽度 */
  height: 32px;
  text-align: center;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #000; /* 黑色数字 */
  background: white;
  margin: 0 -1px; /* 消除按钮间距 */
  -moz-appearance: textfield; /* 隐藏数字输入框箭头 */
}

.quantityControl input::-webkit-outer-spin-button,
.quantityControl input::-webkit-inner-spin-button {
  -webkit-appearance: none; /* Safari/Chrome隐藏箭头 */
}

.quantityControlButton img {
  width: 14px; /* 精确匹配加减号尺寸 */
  height: 14px;
  filter: brightness(0.7); /* 灰色图标 */
  margin-left: 12px;
}
/* 价格明细 */
.priceDetails {
  padding: 9px;
  margin-top: 10px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.priceRow {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #666;
}

.divider {
  height: 1px;
  background: #eee;
  margin: 12px 0;
}

.totalPrice {
  display: flex;
  justify-content: right;
  padding-top: 12px;
  font-size: 15px;
  font-weight: 500;
}

.amount {
  color: #666;
  font-size: 14px;
}

/* 底部操作栏 */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}

.total {
  font-size: 14px;
  color: #666;
}

.total span {
  font-size: 15px;
}

.buyButton {
  background: #ff0000;
  color: white;
  border: none;
  padding: 9px 26px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

/* 提示信息 */
.hintBox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
}

.hintMessage {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 视觉隐藏但屏幕阅读器可读 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
